Skip to content

v3.0.x: rcache/grdma: try to prevent erroneous free error messages #4612

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 12, 2017

Conversation

hjelmn
Copy link
Member

@hjelmn hjelmn commented Dec 12, 2017

It is possible to have parts of an in-use registered region be passed
to munmap or madvise. This does not necessarily mean the user has made
an error but does mean the entire region should be invalidated. This
commit checks that the munmap or madvise base matches the beginning of
the cached region. If it does and the region is in-use then we print
an error. There will certainly be false-negatives where a user
unmaps something that really is in-use but that is preferrable to a
false-positive.

References #4509

Signed-off-by: Nathan Hjelm hjelmn@lanl.gov
(cherry picked from commit d3fa1bb)
Signed-off-by: Nathan Hjelm hjelmn@lanl.gov

It is possible to have parts of an in-use registered region be passed
to munmap or madvise. This does not necessarily mean the user has made
an error but does mean the entire region should be invalidated. This
commit checks that the munmap or madvise base matches the beginning of
the cached region. If it does and the region is in-use then we print
an error. There will certainly be false-negatives where a user
unmaps something that really is in-use but that is preferrable to a
false-positive.

References open-mpi#4509

Signed-off-by: Nathan Hjelm <hjelmn@lanl.gov>
(cherry picked from commit d3fa1bb)
Signed-off-by: Nathan Hjelm <hjelmn@lanl.gov>
@hjelmn hjelmn added this to the v3.0.1 milestone Dec 12, 2017
@hjelmn hjelmn requested a review from jsquyres December 12, 2017 16:24
@jsquyres jsquyres changed the title rcache/grdma: try to prevent erroneous free error messages v3.0.x: rcache/grdma: try to prevent erroneous free error messages Dec 12, 2017
@bwbarrett
Copy link
Member

bot:ompi:retest

Looks like one of the OS X builders was having issues; I've removed it from the testing fleet until we sort that out.

@bwbarrett bwbarrett merged commit f547296 into open-mpi:v3.0.x Dec 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants